package com.org.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * CouponCode entity. @author MyEclipse Persistence Tools
 */

public class CouponCode implements java.io.Serializable {

	// Fields

	private Long id;
	private Member member;
	private Coupon coupon;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private String code;
	private Boolean isUsed;
	private Timestamp usedDate;
	private Set orders = new HashSet(0);

	// Constructors

	/** default constructor */
	public CouponCode() {
	}

	/** minimal constructor */
	public CouponCode(Coupon coupon, Timestamp createDate,
			Timestamp modifyDate, String code, Boolean isUsed) {
		this.coupon = coupon;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.code = code;
		this.isUsed = isUsed;
	}

	/** full constructor */
	public CouponCode(Member member, Coupon coupon, Timestamp createDate,
			Timestamp modifyDate, String code, Boolean isUsed,
			Timestamp usedDate, Set orders) {
		this.member = member;
		this.coupon = coupon;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.code = code;
		this.isUsed = isUsed;
		this.usedDate = usedDate;
		this.orders = orders;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Member getMember() {
		return this.member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Coupon getCoupon() {
		return this.coupon;
	}

	public void setCoupon(Coupon coupon) {
		this.coupon = coupon;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Boolean getIsUsed() {
		return this.isUsed;
	}

	public void setIsUsed(Boolean isUsed) {
		this.isUsed = isUsed;
	}

	public Timestamp getUsedDate() {
		return this.usedDate;
	}

	public void setUsedDate(Timestamp usedDate) {
		this.usedDate = usedDate;
	}

	public Set getOrders() {
		return this.orders;
	}

	public void setOrders(Set orders) {
		this.orders = orders;
	}

}